package la.iok.hzsvn.lewin.movie.cloud.model;

import java.util.Objects;

/**
 * 账号修改参数
 */
public class AccountModifyParam {
    private String sourcePassword;
    private String newUsername;
    private String phoneCode;

    public String getSourcePassword() {
        return sourcePassword;
    }

    public void setSourcePassword(String sourcePassword) {
        this.sourcePassword = sourcePassword;
    }

    public String getNewUsername() {
        return newUsername;
    }

    public void setNewUsername(String newUsername) {
        this.newUsername = newUsername;
    }

    public String getPhoneCode() {
        return phoneCode;
    }

    public void setPhoneCode(String phoneCode) {
        this.phoneCode = phoneCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AccountModifyParam param = (AccountModifyParam) o;
        return Objects.equals(sourcePassword, param.sourcePassword) && Objects.equals(newUsername, param.newUsername) && Objects.equals(phoneCode, param.phoneCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sourcePassword, newUsername, phoneCode);
    }
}
